/*
*  Copyright 2019-2020 Zheng Jie
*
*  Licensed under the Apache License, Version 2.0 (the "License");
*  you may not use this file except in compliance with the License.
*  You may obtain a copy of the License at
*
*  http://www.apache.org/licenses/LICENSE-2.0
*
*  Unless required by applicable law or agreed to in writing, software
*  distributed under the License is distributed on an "AS IS" BASIS,
*  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
*  See the License for the specific language governing permissions and
*  limitations under the License.
*/
package me.zhengjie.modules.business.service.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import me.zhengjie.modules.business.domain.ApplicationSimpleDO;
import me.zhengjie.modules.business.domain.FlowLayerSimpleDO;

import java.sql.Timestamp;
import java.io.Serializable;
import java.util.List;

/**
* @website https://el-admin.vip
* @description /
* @author ljj
* @date 2021-02-19
**/
@Data
public class ExperimentDto implements Serializable {

    private String id;
    private String name;

    @ApiModelProperty(value = "0：编程，1：多链接模式")
    private Integer type;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "0：待启用，1：已开始，2：已停止。")
    private Integer status;

    @ApiModelProperty(value = "流量层ID")
    private Integer layerId;

    @ApiModelProperty(value = "软删除")
    private Boolean softDelete;

    @ApiModelProperty(value = "默认链接")
    private String defaultLink;

    @ApiModelProperty(value = "匹配规则")
    private String patternStr;

    @ApiModelProperty(value = "匹配类型0: 完全匹配，1： 模糊匹配")
    private int patternType;

    @ApiModelProperty(value = "默认变量名-->")
    private String defaultVar;

    @ApiModelProperty(value = "app的ID")
    private String appKey;

    @ApiModelProperty(value = "置信度,默认为0.95。 但是这里α=1-置信度，需要前端做个处理")
    private double confidence;

    private double power;
    private Double layerPro;
    private ApplicationSimpleDO app;
    private FlowLayerSimpleDO layer;
    @ApiModelProperty(value = "统计功效")
    private double beta;
    private Timestamp createTime;
    private List<ExperimentFlagDto> flags;
    private List<ExperimentPointDto> points;

}